/**
 * 
 */
package com.zte.claa.inficombo.csa.app.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 0283000115
 * 
	csa.ga70door.dataredeal.devtype=claa_door_ga70
	csa.ga70door.dataredeal.fieldname=state
	csa.ga70door.dataredeal.fieldresetvalue=close
	csa.ga70door.dataredeal.timeoutseconds=30
	csa.ga70door.dataredeal.checkperiod=5
	csa.ga70door.dataredeal.twicesamevalueisclose=true
 *
 */

@Component  
@ConfigurationProperties(prefix="csa.ga70door.dataredeal") 
public class Ga70DataRecheckProps {
	private String devtype = "claa_door_ga70";
	private String fieldname = "state";
	private String fieldresetvalue = "close";	
	private int timeoutseconds = 30;	
	private int checkperiod = 5;
	private boolean twicesamevalueisclose = true;

	public Ga70DataRecheckProps(){
		
	}

	public String getDevtype() {
		return devtype;
	}

	public void setDevtype(String devtype) {
		this.devtype = devtype;
		this.devtype = (this.devtype == null) ? "" : this.devtype.trim();
	}

	public String getFieldname() {
		return fieldname;
	}

	public void setFieldname(String fieldname) {
		this.fieldname = fieldname;
		this.fieldname = (this.fieldname == null) ? "" : this.fieldname.trim();
	}

	public String getFieldresetvalue() {
		return fieldresetvalue;
	}

	public void setFieldresetvalue(String fieldresetvalue) {
		this.fieldresetvalue = fieldresetvalue;
		this.fieldresetvalue = (this.fieldresetvalue == null) ? "" : this.fieldresetvalue.trim();
	}

	public int getTimeoutseconds() {
		return timeoutseconds;
	}

	public void setTimeoutseconds(int timeoutseconds) {
		this.timeoutseconds = timeoutseconds;
	}

	public int getCheckperiod() {
		return checkperiod;
	}

	public void setCheckperiod(int checkperiod) {
		this.checkperiod = checkperiod;
	}

	public boolean isTwicesamevalueisclose() {
		return twicesamevalueisclose;
	}

	public void setTwicesamevalueisclose(boolean twicesamevalueisclose) {
		this.twicesamevalueisclose = twicesamevalueisclose;
	}

}
